import { Component, OnInit } from '@angular/core';
import { ElNotificationService } from 'element-angular';

@Component({
  selector: 'app-notifications',
  templateUrl: './notifications.component.html',
  styleUrls: ['./notifications.component.scss']
})
export class NotificationsComponent implements OnInit {

  constructor(private notify: ElNotificationService) { }

  ngOnInit() {
  }

  handle(): void {
    this.notify.setOptions({offset: 50, zIndex: 1030});
    this.notify.success('这是一条消息提示');
  }

}
